package io.github.dgfwork.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Date 2021/8/7
 * @Created by Jonathan
 */
@Component
public class B {

	public B() {
		System.out.println("B no args constructor");
	}

	private A a;

	@Autowired
	public void setA(A a) {
		this.a = a;
	}

}
